import request from '@/utils/request'

// 查询editFactory列表
export function listEditFactory(query) {
  return request({
    url: '/system/editFactory/list',
    method: 'get',
    params: query
  })
}

// 查询editFactory详细
export function getEditFactory(id) {
  return request({
    url: '/system/editFactory/' + id,
    method: 'get'
  })
}

// 新增editFactory
export function addEditFactory(data) {
  return request({
    url: '/system/editFactory',
    method: 'post',
    data: data
  })
}

// 修改editFactory
export function updateEditFactory(data) {
  return request({
    url: '/system/editFactory/updateMesFactory',
    method: 'post',
    data: data
  })
}

// 删除editFactory
export function delEditFactory(id) {
  return request({
    url: '/system/editFactory/' + id,
    method: 'delete'
  })
}
